import request from '@/utils/request'

// 表单子项目列表
export function queryWorkflowProjectItemPageResList(data) {
  return request({
    url: '/sysAdmin/workflowProjectItem/queryWorkflowProjectItemPageResList',
    method: 'post',
    data: JSON.stringify(data)
  })
}



// 根据项目Id查询本项目最大的子项目表单id
export function queryWorkflowProjectItemMaxWorkflowItemIdByProjectId(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/queryWorkflowProjectItemMaxWorkflowItemIdByProjectId',
    method: 'post',
    data: JSON.stringify(data)
  })
}

// 根据项目Id查询表单项目的表头信息
export function queryWorkflowProjectItemTableHeadResByProjectId(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/queryWorkflowProjectItemTableHeadResByProjectId',
    method: 'post',
    data: JSON.stringify(data)
  })
}

// 【工作流条件选项表单】根据项目id查询工作流条件选项表单 Workflow
export function queryWorkflowConditionItemResByProjectId(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/queryWorkflowConditionItemResByProjectId',
    method: 'post',
    data: JSON.stringify(data)
  })
}


// 保存和修改表单项目
export function saveUpdateWorkflowProjectItem(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/saveUpdateWorkflowProjectItem',
    method: 'post',
    data: JSON.stringify(data)
  })
}


// 删除表单项目
export function deleteWorkflowProjectItem(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/deleteWorkflowProjectItem',
    method: 'post',
    data: JSON.stringify(data)
  })
}

// 重置项目排序
export function updateWorkflowProjectItemSort(data) {
  return request({
    url: 'sysAdmin/workflowProjectItem/updateWorkflowProjectItemSort',
    method: 'post',
    data: JSON.stringify(data)
  })
}
